<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
	var orgtreegriad;
	$(function() {
		orgtreegriad = $("#departmentTree").treegrid({
			url : '${pageContext.request.contextPath}/DepartmentController/departmentTree',
			idField : 'departmentId',
			treeField : 'departmentName',
			remoteSort : false,
			columns : [ [ {
				field : 'departmentId',
				title : '部门名称',
				hidden : true
			}, {
				field : 'departmentName',
				title : '部门名称'
			}, {
				field : 'head',
				title : '权限列表'
			} ] ],
			toolbar : '#toolbar'
		});
	});
</script>

</head>
<body>
	<table id="departmentTree"></table>
	<div id="toolbar" style="display: none;">
		<a onclick="addFun();" href="javascript:void(0);"
			class="easyui-linkbutton" data-options="plain:true"><img
			src="${pageContext.request.contextPath}/images/brick_add.png">添加部门</a>
	</div>
</body>
</html>